Device Nominations
| |
Nomination Routine |
Description of Device |
| A |
gSwf(framespeed) |
Adobe Flash SWF format file |
Device Characteristics
| Maximum Width |
25600 pixels |
| Maximum Height |
20480 pixels |
| Default X Dimension |
1280 pixels |
| Default Y Dimension |
1024 pixels |
| Thick Lines |
Any Thickness |
| Character Angles |
Horizontal only |
| Polygonal Filling |
Up to 512 Vertices - Solid only |
SWF Details
The GINO SWF metafile driver produces Adobe Flash v5 vector-format files for displaying in a web browser.  The browser will need a plug-in from Adobe if one does not already exist on the system.  Files can consist of multi-frames for producing animated pictures or movies, or can consist of just one frame.  Refer to the supplied example programs for an example HTML file that displays a flash movie.
Frame Speed
The number of frames displayed per second is controlled by the parameter in the device nomination routine.  If this is set to < 1, then the speed will default to 35 frames/second.
New Frame
A new frame is created by calling the routine gNewDrawing(), however if graphics elements are required to be persistent across all frames, start the frame sequence with a call to gFlushGraphics().e.g:
Draw Circle            ! This will get shown during the whole movie
call gFlushGraphics
Draw Box               ! This will get shown in frame 1 only
call gNewDrawing
Draw Triangle          ! This will get shown in frame 2 only
call gNewDrawing
i.e.  The number of calls to gNewDrawing() determines the number of frames in the movie.
Background Colour
The background colour of the drawing can be set by calling gDefineRGB(0,...) and must be called before any drawing routines have been called.  Note also that if the HTML code displaying the flash movie contains:
<PARAM NAME>=wmode VALUE=transparent>
then the GINO background colour will be ignored.
Text
Four hardware fonts are available by using the routine gSetCharFontName(fontname) where fontname can be 'Verdana', '_sans', '_serif' or '_typewriter'.  This will use browser fonts and the text can only be horizontal.